package com.dingding.special.common.exception.bussiness;

import com.dingding.special.common.exception.base.BaseException;

/**
 * @Description:业务上的运行时异常
 * @author fengshuonan
 * @date 2016年8月29日 上午10:07:34
 * @version 叮叮搭车
 * @since 2.4
 */
@SuppressWarnings("serial")
public class BussinessException extends BaseException{
	
	public BussinessException(BizExpEnum enumm){
		super(enumm.getMessage());
		super.code = enumm.getCode();
		this.errorMessage = enumm.getMessage();
	}
	
	public BussinessException() {
		super();
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
